package com.itheima.health.service.impl;

import com.itheima.health.dao.MemberDao;
import com.itheima.health.pojo.entity.Member;
import com.itheima.health.service.MemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberDao memberDao;
    /**
     * @param memberId
     * @param id
     * @return
     */
    @Override
    public Member findById(Integer memberId, String id) {
        log.info("根据ID查询订单：{}",id);
        return memberDao.selectById(id);
    }
}
